home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / x / volume10 / xt-examples / part03 < prev    next >
Encoding:
Internet Message Format  |  1990-11-04  |  63.2 KB

  1. Path: uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!sun-barr!newstop!sun!adobe.com!asente
  2. From: asente@adobe.com
  3. Newsgroups: comp.sources.x
  4. Subject: v10i043: Examples from New Xt Book, Part03/05
  5. Message-ID: <144423@sun.Eng.Sun.COM>
  6. Date: 1 Nov 90 05:52:31 GMT
  7. References: <csx-10i041:xt-examples@uunet.UU.NET>
  8. Sender: news@sun.Eng.Sun.COM
  9. Lines: 1840
  10. Approved: argv@sun.com
  11.  
  12. Submitted-by: asente@adobe.com
  13. Posting-number: Volume 10, Issue 43
  14. Archive-name: xt-examples/part03
  15.  
  16. #! /bin/sh
  17. # This is a shell archive, meaning:
  18. # 1. Remove everything above the #! /bin/sh line.
  19. # 2. Save the resulting text in a file.
  20. # 3. Execute the file with /bin/sh (not csh) to create the files:
  21. #    BarDisplaP.h
  22. #    BarDisplay.h
  23. #    Box.h
  24. #    BoxP.h
  25. #    Confirm.h
  26. #    Confirm1.h
  27. #    Confirm1P.h
  28. #    ConfirmP.h
  29. #    Graph.h
  30. #    GraphDispP.h
  31. #    GraphDispl.h
  32. #    GraphP.h
  33. #    Label.h
  34. #    LabelGadgP.h
  35. #    LabelGadge.h
  36. #    LabelP.h
  37. #    Menu.h
  38. #    MenuItem.h
  39. #    MenuItemP.h
  40. #    MenuP.h
  41. #    MinMax.h
  42. #    MinMaxP.h
  43. #    PushbuttoP.h
  44. #    Pushbutton.h
  45. # This archive created: Wed Oct 24 14:24:10 1990
  46. export PATH; PATH=/bin:$PATH
  47. echo shar: extracting "'BarDisplaP.h'" '(2295 characters)'
  48. if test -f 'BarDisplaP.h'
  49. then
  50.     echo shar: will not over-write existing file "'BarDisplaP.h'"
  51. else
  52. sed 's/^    X//' << \SHAR_EOF > 'BarDisplaP.h'
  53.     X/***********************************************************
  54.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  55.     X
  56.     X                        All Rights Reserved
  57.     X
  58.     XPermission to use, copy, modify, and distribute these examples for any
  59.     Xpurpose and without fee is hereby granted, provided that the above
  60.     Xcopyright notice appear in all copies and that both that copyright
  61.     Xnotice and this permission notice appear in supporting documentation,
  62.     Xand that the name of Digital not be used in advertising or publicity
  63.     Xpertaining to distribution of the software without specific, written
  64.     Xprior permission.
  65.     X
  66.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  67.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  68.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  69.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  70.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  71.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  72.     XOR PERFORMANCE OF THIS SOFTWARE.
  73.     X
  74.     X******************************************************************/
  75.     X
  76.     X/* Make it safe to include this file more than once. */
  77.     X#ifndef BARDISPLAYP_H
  78.     X#define BARDISPLAYP_H
  79.     X
  80.     X/* Include the public header file for BarDisplay */
  81.     X#include "BarDisplay.h"
  82.     X
  83.     X/* Include the private header file for GraphDisplay */
  84.     X#include "GraphDispP.h"
  85.     X
  86.     X/* Define the BarDisplay instance part */
  87.     Xtypedef struct {
  88.     X    Dimension    space;            /* Space between bars */
  89.     X    Dimension    default_graph_width;    /* Default width */
  90.     X    String    format;            /* For displaying value */
  91.     X} BarDisplayPart;
  92.     X
  93.     X/* Define the full instance record */
  94.     Xtypedef struct _BarDisplayRec {
  95.     X    ObjectPart        object;
  96.     X    GraphDisplayPart    graphDisplay;
  97.     X    BarDisplayPart    barDisplay;
  98.     X} BarDisplayRec;
  99.     X
  100.     X/* Define class part structure */
  101.     Xtypedef struct {
  102.     X    XtPointer        extension;
  103.     X} BarDisplayClassPart;
  104.     X
  105.     X/* Define the full class record */
  106.     Xtypedef struct _BarDisplayClassRec {
  107.     X    ObjectClassPart        object_class;
  108.     X    GraphDisplayClassPart    graphDisplay_class;
  109.     X    BarDisplayClassPart        barDisplay_class;
  110.     X} BarDisplayClassRec, *BarDisplayObjectClass;
  111.     X
  112.     X/* External definition for class record */
  113.     Xextern BarDisplayClassRec barDisplayClassRec;
  114.     X
  115.     X/* End of preprocessor directives */
  116.     X#endif /* BARDISPLAYP_H */
  117. SHAR_EOF
  118. if test 2295 -ne "`wc -c < 'BarDisplaP.h'`"
  119. then
  120.     echo shar: error transmitting "'BarDisplaP.h'" '(should have been 2295 characters)'
  121. fi
  122. fi # end of overwriting check
  123. echo shar: extracting "'BarDisplay.h'" '(1771 characters)'
  124. if test -f 'BarDisplay.h'
  125. then
  126.     echo shar: will not over-write existing file "'BarDisplay.h'"
  127. else
  128. sed 's/^    X//' << \SHAR_EOF > 'BarDisplay.h'
  129.     X/***********************************************************
  130.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  131.     X
  132.     X                        All Rights Reserved
  133.     X
  134.     XPermission to use, copy, modify, and distribute these examples for any
  135.     Xpurpose and without fee is hereby granted, provided that the above
  136.     Xcopyright notice appear in all copies and that both that copyright
  137.     Xnotice and this permission notice appear in supporting documentation,
  138.     Xand that the name of Digital not be used in advertising or publicity
  139.     Xpertaining to distribution of the software without specific, written
  140.     Xprior permission.
  141.     X
  142.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  143.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  144.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  145.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  146.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  147.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  148.     XOR PERFORMANCE OF THIS SOFTWARE.
  149.     X
  150.     X******************************************************************/
  151.     X
  152.     X/* Make it safe to include this file more than once. */
  153.     X#ifndef BARDISPLAY_H
  154.     X#define BARDISPLAY_H
  155.     X
  156.     X/* Superclass public header file */
  157.     X
  158.     X#include "GraphDispl.h"
  159.     X
  160.     X/* New resources */
  161.     X
  162.     X#define XtNspace "space"
  163.     X#define XtCSpace "Space"
  164.     X#define XtNdefaultGraphWidth "defaultGraphWidth"
  165.     X#define XtCDefaultGraphWidth "DefaultGraphWidth"
  166.     X#define XtNformat "format"
  167.     X#define XtCFormat "Format"
  168.     X
  169.     X/* External reference to the class record pointer */
  170.     Xextern WidgetClass barDisplayObjectClass;
  171.     X
  172.     X/* Type definition for barDisplay objects */
  173.     Xtypedef struct _BarDisplayRec *BarDisplayObject;
  174.     X
  175.     X/* End of preprocessor directives */
  176.     X#endif /* BARDISPLAY_H */
  177. SHAR_EOF
  178. if test 1771 -ne "`wc -c < 'BarDisplay.h'`"
  179. then
  180.     echo shar: error transmitting "'BarDisplay.h'" '(should have been 1771 characters)'
  181. fi
  182. fi # end of overwriting check
  183. echo shar: extracting "'Box.h'" '(1612 characters)'
  184. if test -f 'Box.h'
  185. then
  186.     echo shar: will not over-write existing file "'Box.h'"
  187. else
  188. sed 's/^    X//' << \SHAR_EOF > 'Box.h'
  189.     X/***********************************************************
  190.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  191.     X
  192.     X                        All Rights Reserved
  193.     X
  194.     XPermission to use, copy, modify, and distribute these examples for any
  195.     Xpurpose and without fee is hereby granted, provided that the above
  196.     Xcopyright notice appear in all copies and that both that copyright
  197.     Xnotice and this permission notice appear in supporting documentation,
  198.     Xand that the name of Digital not be used in advertising or publicity
  199.     Xpertaining to distribution of the software without specific, written
  200.     Xprior permission.
  201.     X
  202.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  203.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  204.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  205.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  206.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  207.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  208.     XOR PERFORMANCE OF THIS SOFTWARE.
  209.     X
  210.     X******************************************************************/
  211.     X
  212.     X/* Make it safe to include this file more than once. */
  213.     X
  214.     X#ifndef BOX_H
  215.     X#define BOX_H
  216.     X
  217.     X/* Box is derived from Composite, so no need to include the superclass
  218.     X   public header file.  */
  219.     X
  220.     X/* Define the new resource that Box uses */
  221.     X
  222.     X#define XtNmargin "margin"
  223.     X
  224.     X/* External reference to the class record pointer */
  225.     X
  226.     Xextern WidgetClass boxWidgetClass;
  227.     X
  228.     X/* Type definition for box widgets */
  229.     X
  230.     Xtypedef struct _BoxRec *BoxWidget;
  231.     X
  232.     X/* End of preprocessor directives */
  233.     X
  234.     X#endif /* BOX_H */
  235. SHAR_EOF
  236. if test 1612 -ne "`wc -c < 'Box.h'`"
  237. then
  238.     echo shar: error transmitting "'Box.h'" '(should have been 1612 characters)'
  239. fi
  240. fi # end of overwriting check
  241. echo shar: extracting "'BoxP.h'" '(2188 characters)'
  242. if test -f 'BoxP.h'
  243. then
  244.     echo shar: will not over-write existing file "'BoxP.h'"
  245. else
  246. sed 's/^    X//' << \SHAR_EOF > 'BoxP.h'
  247.     X/***********************************************************
  248.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  249.     X
  250.     X                        All Rights Reserved
  251.     X
  252.     XPermission to use, copy, modify, and distribute these examples for any
  253.     Xpurpose and without fee is hereby granted, provided that the above
  254.     Xcopyright notice appear in all copies and that both that copyright
  255.     Xnotice and this permission notice appear in supporting documentation,
  256.     Xand that the name of Digital not be used in advertising or publicity
  257.     Xpertaining to distribution of the software without specific, written
  258.     Xprior permission.
  259.     X
  260.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  261.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  262.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  263.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  264.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  265.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  266.     XOR PERFORMANCE OF THIS SOFTWARE.
  267.     X
  268.     X******************************************************************/
  269.     X
  270.     X/* Make it safe to include this file more than once. */
  271.     X
  272.     X#ifndef BOXP_H
  273.     X#define BOXP_H
  274.     X
  275.     X/* Include the public header file for Box */
  276.     X
  277.     X#include "Box.h"
  278.     X
  279.     X/* Box is derived from Composite, so no need to include the superclass
  280.     X   private header file.  */
  281.     X
  282.     X/* Define the Box instance part */
  283.     X
  284.     Xtypedef struct {
  285.     X  /* New resource fields */
  286.     X    Dimension    margin;        /* Extra space to leave on edges */
  287.     X
  288.     X  /* New internal fields */
  289.     X    Widget    last_focus;    /* Child that last had the focus */
  290.     X} BoxPart;
  291.     X
  292.     X/* Define the full instance record */
  293.     X
  294.     Xtypedef struct _BoxRec {
  295.     X    CorePart        core;
  296.     X    CompositePart    composite;
  297.     X    BoxPart        box;
  298.     X} BoxRec;
  299.     X
  300.     X/* Define class part structure */
  301.     X
  302.     Xtypedef struct {
  303.     X    XtPointer        extension;
  304.     X} BoxClassPart;
  305.     X
  306.     X/* Define the full class record */
  307.     X
  308.     Xtypedef struct _BoxClassRec {
  309.     X    CoreClassPart    core_class;
  310.     X    CompositeClassPart    composite_class;
  311.     X    BoxClassPart    box_class;
  312.     X} BoxClassRec, *BoxClass;
  313.     X
  314.     X/* External definition for class record */
  315.     X
  316.     Xextern BoxClassRec boxClassRec;
  317.     X
  318.     X/* End of preprocessor directives */
  319.     X
  320.     X#endif /* BOXP_H */
  321.     X
  322. SHAR_EOF
  323. if test 2188 -ne "`wc -c < 'BoxP.h'`"
  324. then
  325.     echo shar: error transmitting "'BoxP.h'" '(should have been 2188 characters)'
  326. fi
  327. fi # end of overwriting check
  328. echo shar: extracting "'Confirm.h'" '(1864 characters)'
  329. if test -f 'Confirm.h'
  330. then
  331.     echo shar: will not over-write existing file "'Confirm.h'"
  332. else
  333. sed 's/^    X//' << \SHAR_EOF > 'Confirm.h'
  334.     X/***********************************************************
  335.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  336.     X
  337.     X                        All Rights Reserved
  338.     X
  339.     XPermission to use, copy, modify, and distribute these examples for any
  340.     Xpurpose and without fee is hereby granted, provided that the above
  341.     Xcopyright notice appear in all copies and that both that copyright
  342.     Xnotice and this permission notice appear in supporting documentation,
  343.     Xand that the name of Digital not be used in advertising or publicity
  344.     Xpertaining to distribution of the software without specific, written
  345.     Xprior permission.
  346.     X
  347.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  348.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  349.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  350.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  351.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  352.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  353.     XOR PERFORMANCE OF THIS SOFTWARE.
  354.     X
  355.     X******************************************************************/
  356.     X
  357.     X/* Make it safe to include this file more than once. */
  358.     X
  359.     X#ifndef CONFIRM_H
  360.     X#define CONFIRM_H
  361.     X
  362.     X/* Include the public header file for Box, our superclass */
  363.     X
  364.     X#include "Box.h"
  365.     X
  366.     X/* Define the new resources that Confirm uses.  There are no resource
  367.     X   classes corresponding to XtNlabelChild and XtNbuttonChild since
  368.     X   these cannot be set. */
  369.     X
  370.     X#define XtNbuttonLabel "buttonLabel"
  371.     X#define XtCButtonLabel "ButtonLabel"
  372.     X#define XtNlabelWidget "labelWidget"
  373.     X#define XtNbuttonWidget "buttonWidget"
  374.     X
  375.     X/* External reference to the class record pointer */
  376.     X
  377.     Xextern WidgetClass confirmWidgetClass;
  378.     X
  379.     X/* Type definition for confirm widgets */
  380.     X
  381.     Xtypedef struct _ConfirmRec *ConfirmWidget;
  382.     X
  383.     X/* End of preprocessor directives */
  384.     X
  385.     X#endif /* CONFIRM_H */
  386. SHAR_EOF
  387. if test 1864 -ne "`wc -c < 'Confirm.h'`"
  388. then
  389.     echo shar: error transmitting "'Confirm.h'" '(should have been 1864 characters)'
  390. fi
  391. fi # end of overwriting check
  392. echo shar: extracting "'Confirm1.h'" '(1794 characters)'
  393. if test -f 'Confirm1.h'
  394. then
  395.     echo shar: will not over-write existing file "'Confirm1.h'"
  396. else
  397. sed 's/^    X//' << \SHAR_EOF > 'Confirm1.h'
  398.     X/***********************************************************
  399.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  400.     X
  401.     X                        All Rights Reserved
  402.     X
  403.     XPermission to use, copy, modify, and distribute these examples for any
  404.     Xpurpose and without fee is hereby granted, provided that the above
  405.     Xcopyright notice appear in all copies and that both that copyright
  406.     Xnotice and this permission notice appear in supporting documentation,
  407.     Xand that the name of Digital not be used in advertising or publicity
  408.     Xpertaining to distribution of the software without specific, written
  409.     Xprior permission.
  410.     X
  411.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  412.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  413.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  414.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  415.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  416.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  417.     XOR PERFORMANCE OF THIS SOFTWARE.
  418.     X
  419.     X******************************************************************/
  420.     X
  421.     X/* Make it safe to include this file more than once. */
  422.     X
  423.     X#ifndef CONFIRM_H
  424.     X#define CONFIRM_H
  425.     X
  426.     X/* Confirm is derived from Core, so no need to include the superclass
  427.     X   public header file.  */
  428.     X
  429.     X/* Define the new resources that Confirm uses */
  430.     X
  431.     X#define XtNmargin "margin"
  432.     X#define XtNbuttonLabel "buttonLabel"
  433.     X#define XtCButtonLabel "ButtonLabel"
  434.     X#define XtNlabelWidget "labelWidget"
  435.     X#define XtNbuttonWidget "buttonWidget"
  436.     X
  437.     X/* External reference to the class record pointer */
  438.     X
  439.     Xextern WidgetClass confirmWidgetClass;
  440.     X
  441.     X/* Type definition for confirm widgets */
  442.     X
  443.     Xtypedef struct _ConfirmRec *ConfirmWidget;
  444.     X
  445.     X/* End of preprocessor directives */
  446.     X
  447.     X#endif /* CONFIRM_H */
  448. SHAR_EOF
  449. if test 1794 -ne "`wc -c < 'Confirm1.h'`"
  450. then
  451.     echo shar: error transmitting "'Confirm1.h'" '(should have been 1794 characters)'
  452. fi
  453. fi # end of overwriting check
  454. echo shar: extracting "'Confirm1P.h'" '(2342 characters)'
  455. if test -f 'Confirm1P.h'
  456. then
  457.     echo shar: will not over-write existing file "'Confirm1P.h'"
  458. else
  459. sed 's/^    X//' << \SHAR_EOF > 'Confirm1P.h'
  460.     X/***********************************************************
  461.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  462.     X
  463.     X                        All Rights Reserved
  464.     X
  465.     XPermission to use, copy, modify, and distribute these examples for any
  466.     Xpurpose and without fee is hereby granted, provided that the above
  467.     Xcopyright notice appear in all copies and that both that copyright
  468.     Xnotice and this permission notice appear in supporting documentation,
  469.     Xand that the name of Digital not be used in advertising or publicity
  470.     Xpertaining to distribution of the software without specific, written
  471.     Xprior permission.
  472.     X
  473.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  474.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  475.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  476.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  477.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  478.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  479.     XOR PERFORMANCE OF THIS SOFTWARE.
  480.     X
  481.     X******************************************************************/
  482.     X
  483.     X/* Make it safe to include this file more than once. */
  484.     X
  485.     X#ifndef CONFIRMP_H
  486.     X#define CONFIRMP_H
  487.     X
  488.     X/* Include the public header file for Confirm */
  489.     X
  490.     X#include "Confirm1.h"
  491.     X
  492.     X/* Confirm is derived from Core, so no need to include the superclass
  493.     X   private header file.  */
  494.     X
  495.     X/* Define the Confirm instance part */
  496.     X
  497.     Xtypedef struct {
  498.     X  /* New resource fields */
  499.     X    Dimension        margin;        /* Extra space to leave */
  500.     X    String        label;        /* Label string */
  501.     X    String        button_label;    /* Button string */
  502.     X    XtCallbackList    callback;    /* Callback to execute */
  503.     X    Widget        label_widget;    /* Label subwidget */
  504.     X    Widget        button_widget;    /* Pushbutton subwidget */
  505.     X} ConfirmPart;
  506.     X
  507.     X/* Define the full instance record */
  508.     X
  509.     Xtypedef struct _ConfirmRec {
  510.     X    CorePart        core;
  511.     X    ConfirmPart        confirm;
  512.     X} ConfirmRec;
  513.     X
  514.     X/* Define class part structure */
  515.     X
  516.     Xtypedef struct {
  517.     X    XtPointer        extension;
  518.     X} ConfirmClassPart;
  519.     X
  520.     X/* Define the full class record */
  521.     X
  522.     X
  523.     Xtypedef struct _ConfirmClassRec {
  524.     X    CoreClassPart    core_class;
  525.     X    ConfirmClassPart    confirm_class;
  526.     X} ConfirmClassRec, *ConfirmClass;
  527.     X
  528.     X/* External definition for class record */
  529.     X
  530.     Xextern ConfirmClassRec confirmClassRec;
  531.     X
  532.     X/* End of preprocessor directives */
  533.     X
  534.     X#endif /* CONFIRMP_H */
  535.     X
  536. SHAR_EOF
  537. if test 2342 -ne "`wc -c < 'Confirm1P.h'`"
  538. then
  539.     echo shar: error transmitting "'Confirm1P.h'" '(should have been 2342 characters)'
  540. fi
  541. fi # end of overwriting check
  542. echo shar: extracting "'ConfirmP.h'" '(2285 characters)'
  543. if test -f 'ConfirmP.h'
  544. then
  545.     echo shar: will not over-write existing file "'ConfirmP.h'"
  546. else
  547. sed 's/^    X//' << \SHAR_EOF > 'ConfirmP.h'
  548.     X/***********************************************************
  549.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  550.     X
  551.     X                        All Rights Reserved
  552.     X
  553.     XPermission to use, copy, modify, and distribute these examples for any
  554.     Xpurpose and without fee is hereby granted, provided that the above
  555.     Xcopyright notice appear in all copies and that both that copyright
  556.     Xnotice and this permission notice appear in supporting documentation,
  557.     Xand that the name of Digital not be used in advertising or publicity
  558.     Xpertaining to distribution of the software without specific, written
  559.     Xprior permission.
  560.     X
  561.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  562.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  563.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  564.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  565.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  566.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  567.     XOR PERFORMANCE OF THIS SOFTWARE.
  568.     X
  569.     X******************************************************************/
  570.     X
  571.     X/* Make it safe to include this file more than once. */
  572.     X
  573.     X#ifndef CONFIRMP_H
  574.     X#define CONFIRMP_H
  575.     X
  576.     X/* Include the public header file for Confirm */
  577.     X
  578.     X#include "Confirm.h"
  579.     X
  580.     X/* Include the private header file for Box, our superclass */
  581.     X
  582.     X#include "BoxP.h"
  583.     X
  584.     X/* Define the Confirm instance part */
  585.     X
  586.     Xtypedef struct {
  587.     X  /* New resource fields */
  588.     X    String        label;        /* Label string */
  589.     X    String        button_label;    /* Button string */
  590.     X    XtCallbackList    callback;    /* Callback to execute */
  591.     X} ConfirmPart;
  592.     X
  593.     X/* Define the full instance record */
  594.     X
  595.     Xtypedef struct _ConfirmRec {
  596.     X    CorePart        core;
  597.     X    CompositePart    composite;
  598.     X    BoxPart        box;
  599.     X    ConfirmPart        confirm;
  600.     X} ConfirmRec;
  601.     X
  602.     X/* Define class part structure */
  603.     X
  604.     Xtypedef struct {
  605.     X    XtPointer        extension;
  606.     X} ConfirmClassPart;
  607.     X
  608.     X/* Define the full class record */
  609.     X
  610.     Xtypedef struct _ConfirmClassRec {
  611.     X    CoreClassPart    core_class;
  612.     X    CompositeClassPart    composite_class;
  613.     X    BoxClassPart    box_class;
  614.     X    ConfirmClassPart    confirm_class;
  615.     X} ConfirmClassRec, *ConfirmClass;
  616.     X
  617.     X/* External definition for class record */
  618.     X
  619.     Xextern ConfirmClassRec confirmClassRec;
  620.     X
  621.     X/* End of preprocessor directives */
  622.     X
  623.     X#endif /* CONFIRMP_H */
  624.     X
  625. SHAR_EOF
  626. if test 2285 -ne "`wc -c < 'ConfirmP.h'`"
  627. then
  628.     echo shar: error transmitting "'ConfirmP.h'" '(should have been 2285 characters)'
  629. fi
  630. fi # end of overwriting check
  631. echo shar: extracting "'Graph.h'" '(1863 characters)'
  632. if test -f 'Graph.h'
  633. then
  634.     echo shar: will not over-write existing file "'Graph.h'"
  635. else
  636. sed 's/^    X//' << \SHAR_EOF > 'Graph.h'
  637.     X/***********************************************************
  638.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  639.     X
  640.     X                        All Rights Reserved
  641.     X
  642.     XPermission to use, copy, modify, and distribute these examples for any
  643.     Xpurpose and without fee is hereby granted, provided that the above
  644.     Xcopyright notice appear in all copies and that both that copyright
  645.     Xnotice and this permission notice appear in supporting documentation,
  646.     Xand that the name of Digital not be used in advertising or publicity
  647.     Xpertaining to distribution of the software without specific, written
  648.     Xprior permission.
  649.     X
  650.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  651.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  652.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  653.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  654.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  655.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  656.     XOR PERFORMANCE OF THIS SOFTWARE.
  657.     X
  658.     X******************************************************************/
  659.     X
  660.     X/* Make it safe to include this file more than once. */
  661.     X#ifndef GRAPH_H
  662.     X#define GRAPH_H
  663.     X
  664.     X/* Graph is derived from Composite, so no need to include the
  665.     X   superclass public header file.  */
  666.     X
  667.     X/* New resources */
  668.     X
  669.     X#define XtNnumEntries "numEntries"
  670.     X#define XtCNumEntries "NumEntries"
  671.     X#define XtNlabels "labels"
  672.     X#define XtCLabels "Labels"
  673.     X#define XtNvalues "values"
  674.     X#define XtCValues "Values"
  675.     X#define XtNmaxValue "maxValue"
  676.     X#define XtCMaxValue "MaxValue"
  677.     X#define XtNscale "scale"
  678.     X#define XtCScale "Scale"
  679.     X
  680.     X/* External reference to the class record pointer */
  681.     Xextern WidgetClass graphWidgetClass;
  682.     X
  683.     X/* Type definition for graph widgets */
  684.     Xtypedef struct _GraphRec *GraphWidget;
  685.     X
  686.     X/* End of preprocessor directives */
  687.     X#endif /* GRAPH_H */
  688. SHAR_EOF
  689. if test 1863 -ne "`wc -c < 'Graph.h'`"
  690. then
  691.     echo shar: error transmitting "'Graph.h'" '(should have been 1863 characters)'
  692. fi
  693. fi # end of overwriting check
  694. echo shar: extracting "'GraphDispP.h'" '(2555 characters)'
  695. if test -f 'GraphDispP.h'
  696. then
  697.     echo shar: will not over-write existing file "'GraphDispP.h'"
  698. else
  699. sed 's/^    X//' << \SHAR_EOF > 'GraphDispP.h'
  700.     X/***********************************************************
  701.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  702.     X
  703.     X                        All Rights Reserved
  704.     X
  705.     XPermission to use, copy, modify, and distribute these examples for any
  706.     Xpurpose and without fee is hereby granted, provided that the above
  707.     Xcopyright notice appear in all copies and that both that copyright
  708.     Xnotice and this permission notice appear in supporting documentation,
  709.     Xand that the name of Digital not be used in advertising or publicity
  710.     Xpertaining to distribution of the software without specific, written
  711.     Xprior permission.
  712.     X
  713.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  714.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  715.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  716.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  717.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  718.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  719.     XOR PERFORMANCE OF THIS SOFTWARE.
  720.     X
  721.     X******************************************************************/
  722.     X
  723.     X/* Make it safe to include this file more than once. */
  724.     X#ifndef GRAPHDISPLAYP_H
  725.     X#define GRAPHDISPLAYP_H
  726.     X
  727.     X/* Include the public header file for GraphDisplay */
  728.     X#include "GraphDispl.h"
  729.     X
  730.     X/* GraphDisplay is derived from Object, so no need to include the
  731.     X   superclass private header file. */
  732.     X
  733.     X/* Define the GraphDisplay instance part */
  734.     Xtypedef struct {
  735.     X    Pixel    foreground;    /* Foreground pixel value */
  736.     X    XFontStruct    *font;        /* Font to display in */
  737.     X    GC        gc;        /* Graphics context for displaying */
  738.     X} GraphDisplayPart;
  739.     X
  740.     X/* Define the full instance record */
  741.     Xtypedef struct _GraphDisplayRec {
  742.     X    ObjectPart        object;
  743.     X    GraphDisplayPart    graphDisplay;
  744.     X} GraphDisplayRec;
  745.     X
  746.     X/* Define new type for the compute_size method */
  747.     Xtypedef void (*ComputeSizeProc)();
  748.     X    /* GraphWidget    w; */
  749.     X
  750.     X/* Define class part structure */
  751.     Xtypedef struct {
  752.     X    ComputeSizeProc    compute_size;
  753.     X    XtExposeProc    expose;
  754.     X    XtPointer        extension;
  755.     X} GraphDisplayClassPart;
  756.     X
  757.     X/* Define the full class record */
  758.     Xtypedef struct _GraphDisplayClassRec {
  759.     X    ObjectClassPart        object_class;
  760.     X    GraphDisplayClassPart    graphDisplay_class;
  761.     X} GraphDisplayClassRec, *GraphDisplayObjectClass;
  762.     X
  763.     X/* External definition for class record */
  764.     Xextern GraphDisplayClassRec graphDisplayClassRec;
  765.     X
  766.     X/* Inheritance constant for compute_size method */
  767.     X
  768.     X#define InheritComputeSize ((ComputeSizeProc) _XtInherit)
  769.     X
  770.     X/* End of preprocessor directives */
  771.     X#endif /* GRAPHDISPLAYP_H */
  772. SHAR_EOF
  773. if test 2555 -ne "`wc -c < 'GraphDispP.h'`"
  774. then
  775.     echo shar: error transmitting "'GraphDispP.h'" '(should have been 2555 characters)'
  776. fi
  777. fi # end of overwriting check
  778. echo shar: extracting "'GraphDispl.h'" '(1603 characters)'
  779. if test -f 'GraphDispl.h'
  780. then
  781.     echo shar: will not over-write existing file "'GraphDispl.h'"
  782. else
  783. sed 's/^    X//' << \SHAR_EOF > 'GraphDispl.h'
  784.     X/***********************************************************
  785.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  786.     X
  787.     X                        All Rights Reserved
  788.     X
  789.     XPermission to use, copy, modify, and distribute these examples for any
  790.     Xpurpose and without fee is hereby granted, provided that the above
  791.     Xcopyright notice appear in all copies and that both that copyright
  792.     Xnotice and this permission notice appear in supporting documentation,
  793.     Xand that the name of Digital not be used in advertising or publicity
  794.     Xpertaining to distribution of the software without specific, written
  795.     Xprior permission.
  796.     X
  797.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  798.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  799.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  800.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  801.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  802.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  803.     XOR PERFORMANCE OF THIS SOFTWARE.
  804.     X
  805.     X******************************************************************/
  806.     X
  807.     X/* Make it safe to include this file more than once. */
  808.     X#ifndef GRAPHDISPLAY_H
  809.     X#define GRAPHDISPLAY_H
  810.     X
  811.     X/* GraphDisplay is derived from Object, so no need to include the
  812.     X   superclass public header file. */
  813.     X
  814.     X/* External reference to the class record pointer */
  815.     Xextern WidgetClass graphDisplayObjectClass;
  816.     X
  817.     X/* Type definition for graphDisplay objects */
  818.     Xtypedef struct _GraphDisplayRec *GraphDisplayObject;
  819.     X
  820.     X/* End of preprocessor directives */
  821.     X#endif /* GRAPHDISPLAY_H */
  822. SHAR_EOF
  823. if test 1603 -ne "`wc -c < 'GraphDispl.h'`"
  824. then
  825.     echo shar: error transmitting "'GraphDispl.h'" '(should have been 1603 characters)'
  826. fi
  827. fi # end of overwriting check
  828. echo shar: extracting "'GraphP.h'" '(2279 characters)'
  829. if test -f 'GraphP.h'
  830. then
  831.     echo shar: will not over-write existing file "'GraphP.h'"
  832. else
  833. sed 's/^    X//' << \SHAR_EOF > 'GraphP.h'
  834.     X/***********************************************************
  835.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  836.     X
  837.     X                        All Rights Reserved
  838.     X
  839.     XPermission to use, copy, modify, and distribute these examples for any
  840.     Xpurpose and without fee is hereby granted, provided that the above
  841.     Xcopyright notice appear in all copies and that both that copyright
  842.     Xnotice and this permission notice appear in supporting documentation,
  843.     Xand that the name of Digital not be used in advertising or publicity
  844.     Xpertaining to distribution of the software without specific, written
  845.     Xprior permission.
  846.     X
  847.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  848.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  849.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  850.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  851.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  852.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  853.     XOR PERFORMANCE OF THIS SOFTWARE.
  854.     X
  855.     X******************************************************************/
  856.     X
  857.     X/* Make it safe to include this file more than once. */
  858.     X#ifndef GRAPHP_H
  859.     X#define GRAPHP_H
  860.     X
  861.     X/* Include the public header file for Graph */
  862.     X#include "Graph.h"
  863.     X
  864.     X/* Graph is derived from Composite, so no need to include the
  865.     X   superclass private header file. */
  866.     X
  867.     X/* Define the Graph instance part */
  868.     Xtypedef struct {
  869.     X    int        num_entries;    /* Number of entries to graph */
  870.     X    String    *labels;    /* Labels for values */
  871.     X    int        *values;    /* Graph values */
  872.     X    int        max_value;    /* Maximum graph value */
  873.     X    int        scale;        /* Scale factor for values */
  874.     X} GraphPart;
  875.     X
  876.     X/* Define the full instance record */
  877.     Xtypedef struct _GraphRec {
  878.     X    CorePart        core;
  879.     X    CompositePart     composite;
  880.     X    GraphPart        graph;
  881.     X} GraphRec;
  882.     X
  883.     X/* Define class part structure */
  884.     Xtypedef struct {
  885.     X    XtPointer        extension;
  886.     X} GraphClassPart;
  887.     X
  888.     X/* Define the full class record */
  889.     Xtypedef struct _GraphClassRec {
  890.     X    CoreClassPart    core_class;
  891.     X    CompositeClassPart    composite_class;
  892.     X    GraphClassPart    graph_class;
  893.     X} GraphClassRec, *GraphWidgetClass;
  894.     X
  895.     X/* External definition for class record */
  896.     Xextern GraphClassRec graphClassRec;
  897.     X
  898.     X/* End of preprocessor directives */
  899.     X#endif /* GRAPHP_H */
  900. SHAR_EOF
  901. if test 2279 -ne "`wc -c < 'GraphP.h'`"
  902. then
  903.     echo shar: error transmitting "'GraphP.h'" '(should have been 2279 characters)'
  904. fi
  905. fi # end of overwriting check
  906. echo shar: extracting "'Label.h'" '(1870 characters)'
  907. if test -f 'Label.h'
  908. then
  909.     echo shar: will not over-write existing file "'Label.h'"
  910. else
  911. sed 's/^    X//' << \SHAR_EOF > 'Label.h'
  912.     X/***********************************************************
  913.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  914.     X
  915.     X                        All Rights Reserved
  916.     X
  917.     XPermission to use, copy, modify, and distribute these examples for any
  918.     Xpurpose and without fee is hereby granted, provided that the above
  919.     Xcopyright notice appear in all copies and that both that copyright
  920.     Xnotice and this permission notice appear in supporting documentation,
  921.     Xand that the name of Digital not be used in advertising or publicity
  922.     Xpertaining to distribution of the software without specific, written
  923.     Xprior permission.
  924.     X
  925.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  926.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  927.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  928.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  929.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  930.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  931.     XOR PERFORMANCE OF THIS SOFTWARE.
  932.     X
  933.     X******************************************************************/
  934.     X
  935.     X/* Make it safe to include this file more than once. */
  936.     X#ifndef LABEL_H
  937.     X#define LABEL_H
  938.     X
  939.     X/* Label is derived from Core, so no need to include the superclass
  940.     X   public header file.  */
  941.     X
  942.     X/* New resource */
  943.     X
  944.     X#define XtNloseSelection "loseSelection"
  945.     X#define XtCLoseSelection "LoseSelection"
  946.     X
  947.     X/* New type for justification */
  948.     Xtypedef enum { Center, Left, Right } Justify;
  949.     X
  950.     X/* External reference to the class record pointer */
  951.     Xextern WidgetClass labelWidgetClass;
  952.     X
  953.     X/* Type definition for label widgets */
  954.     Xtypedef struct _LabelRec *LabelWidget;
  955.     X
  956.     X/* Method declaration */
  957.     Xextern Boolean LabelSelectText();
  958.     X    /* Widget    w;        */
  959.     X    /* Atom    selection;  */
  960.     X    /* Boolean    select;        */
  961.     X
  962.     X/* End of preprocessor directives */
  963.     X#endif /* LABEL_H */
  964. SHAR_EOF
  965. if test 1870 -ne "`wc -c < 'Label.h'`"
  966. then
  967.     echo shar: error transmitting "'Label.h'" '(should have been 1870 characters)'
  968. fi
  969. fi # end of overwriting check
  970. echo shar: extracting "'LabelGadgP.h'" '(3246 characters)'
  971. if test -f 'LabelGadgP.h'
  972. then
  973.     echo shar: will not over-write existing file "'LabelGadgP.h'"
  974. else
  975. sed 's/^    X//' << \SHAR_EOF > 'LabelGadgP.h'
  976.     X/***********************************************************
  977.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  978.     X
  979.     X                        All Rights Reserved
  980.     X
  981.     XPermission to use, copy, modify, and distribute these examples for any
  982.     Xpurpose and without fee is hereby granted, provided that the above
  983.     Xcopyright notice appear in all copies and that both that copyright
  984.     Xnotice and this permission notice appear in supporting documentation,
  985.     Xand that the name of Digital not be used in advertising or publicity
  986.     Xpertaining to distribution of the software without specific, written
  987.     Xprior permission.
  988.     X
  989.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  990.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  991.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  992.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  993.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  994.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  995.     XOR PERFORMANCE OF THIS SOFTWARE.
  996.     X
  997.     X******************************************************************/
  998.     X
  999.     X/* Make it safe to include this file more than once. */
  1000.     X#ifndef LABEL_GADGETP_H
  1001.     X#define LABEL_GADGETP_H
  1002.     X
  1003.     X/* Include the public header file for LabelGadget */
  1004.     X#include "LabelGadge.h"
  1005.     X
  1006.     X/* LabelGadget is derived from RectObj, so no need to include the
  1007.     X   superclass private header file.  No internal types need to be
  1008.     X   defined. */
  1009.     X
  1010.     X/* Define the LabelGadget instance part */
  1011.     Xtypedef struct {
  1012.     X  /* New resource fields */
  1013.     X    String    label;        /* Text to display */
  1014.     X    Pixel    foreground;    /* Foreground pixel value */
  1015.     X    XFontStruct    *font;        /* Font to display in */
  1016.     X    Justify    justify;    /* The justification value */
  1017.     X    Dimension    space;        /* Inner padding value */
  1018.     X    Pixel    background;    /* Background pixel value */
  1019.     X    Pixel    border;        /* Border pixel value */
  1020.     X
  1021.     X  /* New internal fields */
  1022.     X    GC        gc;        /* Graphics context for displaying */
  1023.     X    GC        background_gc;    /* Graphics context for background */
  1024.     X    GC        border_gc;    /* Graphics context for border */
  1025.     X    Dimension    old_border;    /* Previous border width */
  1026.     X    Dimension    label_width;    /* The calculated width */
  1027.     X    Dimension    label_height;    /* The calculated height */
  1028.     X    Cardinal    label_len;    /* The length of the text string */
  1029.     X    Boolean    size_computed;    /* Whether the size was computed */
  1030.     X    Dimension    desired_width;    /* The width the widget wants to be */
  1031.     X    Dimension    desired_height;    /* The height the widget wants to be */
  1032.     X    GC        current_gc;    /* GC we are currently using */
  1033.     X    GC        current_bg_gc;    /* GC for current background */
  1034.     X} LabelGadgetPart;
  1035.     X
  1036.     X/* Define the full instance record */
  1037.     Xtypedef struct _LabelGadgetRec {
  1038.     X    ObjectPart        object;
  1039.     X    RectObjPart        rectObj;
  1040.     X    LabelGadgetPart    label;
  1041.     X} LabelGadgetRec;
  1042.     X
  1043.     X/* Define class part structure */
  1044.     Xtypedef struct {
  1045.     X    XtPointer        extension;
  1046.     X} LabelGadgetClassPart;
  1047.     X
  1048.     X/* Define the full class record */
  1049.     Xtypedef struct _LabelGadgetClassRec {
  1050.     X    RectObjClassPart        rect_class;
  1051.     X    LabelGadgetClassPart    label_class;
  1052.     X} LabelGadgetClassRec, *LabelGadgetClass;
  1053.     X
  1054.     X/* External definition for class record */
  1055.     Xextern LabelGadgetClassRec labelGadgetClassRec;
  1056.     X
  1057.     X/* End of preprocessor directives */
  1058.     X#endif /* LABEL_GADGETP_H */
  1059. SHAR_EOF
  1060. if test 3246 -ne "`wc -c < 'LabelGadgP.h'`"
  1061. then
  1062.     echo shar: error transmitting "'LabelGadgP.h'" '(should have been 3246 characters)'
  1063. fi
  1064. fi # end of overwriting check
  1065. echo shar: extracting "'LabelGadge.h'" '(1654 characters)'
  1066. if test -f 'LabelGadge.h'
  1067. then
  1068.     echo shar: will not over-write existing file "'LabelGadge.h'"
  1069. else
  1070. sed 's/^    X//' << \SHAR_EOF > 'LabelGadge.h'
  1071.     X/***********************************************************
  1072.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  1073.     X
  1074.     X                        All Rights Reserved
  1075.     X
  1076.     XPermission to use, copy, modify, and distribute these examples for any
  1077.     Xpurpose and without fee is hereby granted, provided that the above
  1078.     Xcopyright notice appear in all copies and that both that copyright
  1079.     Xnotice and this permission notice appear in supporting documentation,
  1080.     Xand that the name of Digital not be used in advertising or publicity
  1081.     Xpertaining to distribution of the software without specific, written
  1082.     Xprior permission.
  1083.     X
  1084.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  1085.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  1086.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  1087.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  1088.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  1089.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  1090.     XOR PERFORMANCE OF THIS SOFTWARE.
  1091.     X
  1092.     X******************************************************************/
  1093.     X
  1094.     X/* Make it safe to include this file more than once. */
  1095.     X#ifndef LABEL_GADGET_H
  1096.     X#define LABEL_GADGET_H
  1097.     X
  1098.     X/* LabelGadget is derived from RectObj, so no need to include the
  1099.     X   superclass public header file.  */
  1100.     X
  1101.     X/* Include Label header file to get Justify type */
  1102.     X#include "Label.h"
  1103.     X
  1104.     X/* External reference to the class record pointer */
  1105.     Xextern WidgetClass labelGadgetClass;
  1106.     X
  1107.     X/* Type definition for label widgets */
  1108.     Xtypedef struct _LabelGadgetRec *LabelGadget;
  1109.     X
  1110.     X/* End of preprocessor directives */
  1111.     X#endif /* LABEL_GADGET_H */
  1112. SHAR_EOF
  1113. if test 1654 -ne "`wc -c < 'LabelGadge.h'`"
  1114. then
  1115.     echo shar: error transmitting "'LabelGadge.h'" '(should have been 1654 characters)'
  1116. fi
  1117. fi # end of overwriting check
  1118. echo shar: extracting "'LabelP.h'" '(3237 characters)'
  1119. if test -f 'LabelP.h'
  1120. then
  1121.     echo shar: will not over-write existing file "'LabelP.h'"
  1122. else
  1123. sed 's/^    X//' << \SHAR_EOF > 'LabelP.h'
  1124.     X/***********************************************************
  1125.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  1126.     X
  1127.     X                        All Rights Reserved
  1128.     X
  1129.     XPermission to use, copy, modify, and distribute these examples for any
  1130.     Xpurpose and without fee is hereby granted, provided that the above
  1131.     Xcopyright notice appear in all copies and that both that copyright
  1132.     Xnotice and this permission notice appear in supporting documentation,
  1133.     Xand that the name of Digital not be used in advertising or publicity
  1134.     Xpertaining to distribution of the software without specific, written
  1135.     Xprior permission.
  1136.     X
  1137.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  1138.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  1139.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  1140.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  1141.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  1142.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  1143.     XOR PERFORMANCE OF THIS SOFTWARE.
  1144.     X
  1145.     X******************************************************************/
  1146.     X
  1147.     X/* Make it safe to include this file more than once. */
  1148.     X#ifndef LABELP_H
  1149.     X#define LABELP_H
  1150.     X
  1151.     X/* Include the public header file for Label */
  1152.     X#include "Label.h"
  1153.     X
  1154.     X/* Label is derived from Core, so no need to include the superclass
  1155.     X   private header file.  No internal types need to be defined. */
  1156.     X
  1157.     X/* Define the Label instance part */
  1158.     Xtypedef struct {
  1159.     X  /* New resource fields */
  1160.     X    String       label;        /* Text to display */
  1161.     X    Pixel       foreground;        /* Foreground pixel value */
  1162.     X    XFontStruct       *font;        /* Font to display in */
  1163.     X    Justify       justify;        /* The justification value */
  1164.     X    Dimension       space;        /* Inner padding value */
  1165.     X    XtCallbackList lose_selection;  /* Notify app. of lost selection */
  1166.     X
  1167.     X  /* New internal fields */
  1168.     X    GC        gc;        /* Graphics context for displaying */
  1169.     X    Dimension    label_width;    /* The calculated width */
  1170.     X    Dimension    label_height;    /* The calculated height */
  1171.     X    Cardinal    label_len;    /* The length of the text string */
  1172.     X    Boolean    size_computed;    /* Whether the size was computed */
  1173.     X    Dimension    desired_width;    /* The width the widget wants to be */
  1174.     X    Dimension    desired_height;    /* The height the widget wants to be */
  1175.     X    String    accel_string;    /* Accelerator string */
  1176.     X    GC        current_gc;    /* GC we are currently using */
  1177.     X} LabelPart;
  1178.     X
  1179.     X/* Define the full instance record */
  1180.     Xtypedef struct _LabelRec {
  1181.     X    CorePart    core;
  1182.     X    LabelPart    label;
  1183.     X} LabelRec;
  1184.     X
  1185.     X/* Define new type for the class method */
  1186.     Xtypedef Boolean (*LabelSelectionProc)();
  1187.     X    /* Widget    w;         */
  1188.     X    /* Atom    selection;    */
  1189.     X    /* Boolean  own;        */
  1190.     X
  1191.     X/* Define class part structure */
  1192.     Xtypedef struct {
  1193.     X    LabelSelectionProc    select;
  1194.     X    XtPointer        extension;
  1195.     X} LabelClassPart;
  1196.     X
  1197.     X/* Define the full class record */
  1198.     Xtypedef struct _LabelClassRec {
  1199.     X    CoreClassPart    core_class;
  1200.     X    LabelClassPart    label_class;
  1201.     X} LabelClassRec, *LabelWidgetClass;
  1202.     X
  1203.     X/* External definition for class record */
  1204.     Xextern LabelClassRec labelClassRec;
  1205.     X
  1206.     X/* Inheritance constant for select_text method */
  1207.     X#define InheritSelectText ((LabelSelectionProc) _XtInherit)
  1208.     X
  1209.     X/* End of preprocessor directives */
  1210.     X#endif /* LABELP_H */
  1211. SHAR_EOF
  1212. if test 3237 -ne "`wc -c < 'LabelP.h'`"
  1213. then
  1214.     echo shar: error transmitting "'LabelP.h'" '(should have been 3237 characters)'
  1215. fi
  1216. fi # end of overwriting check
  1217. echo shar: extracting "'Menu.h'" '(1673 characters)'
  1218. if test -f 'Menu.h'
  1219. then
  1220.     echo shar: will not over-write existing file "'Menu.h'"
  1221. else
  1222. sed 's/^    X//' << \SHAR_EOF > 'Menu.h'
  1223.     X/***********************************************************
  1224.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  1225.     X
  1226.     X                        All Rights Reserved
  1227.     X
  1228.     XPermission to use, copy, modify, and distribute these examples for any
  1229.     Xpurpose and without fee is hereby granted, provided that the above
  1230.     Xcopyright notice appear in all copies and that both that copyright
  1231.     Xnotice and this permission notice appear in supporting documentation,
  1232.     Xand that the name of Digital not be used in advertising or publicity
  1233.     Xpertaining to distribution of the software without specific, written
  1234.     Xprior permission.
  1235.     X
  1236.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  1237.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  1238.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  1239.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  1240.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  1241.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  1242.     XOR PERFORMANCE OF THIS SOFTWARE.
  1243.     X
  1244.     X******************************************************************/
  1245.     X
  1246.     X/* Make it safe to include this file more than once. */
  1247.     X
  1248.     X#ifndef MENU_H
  1249.     X#define MENU_H
  1250.     X
  1251.     X/* Menu is derived from Constraint, so no need to include the
  1252.     X   superclass public header file.  */
  1253.     X
  1254.     X/* Define the new resource that Menu uses */
  1255.     X
  1256.     X#define XtNinsertBefore "insertBefore"
  1257.     X#define XtCInsertBefore "InsertBefore"
  1258.     X
  1259.     X/* External reference to the class record pointer */
  1260.     X
  1261.     Xextern WidgetClass menuWidgetClass;
  1262.     X
  1263.     X/* Type definition for menu widgets */
  1264.     X
  1265.     Xtypedef struct _MenuRec *MenuWidget;
  1266.     X
  1267.     X/* End of preprocessor directives */
  1268.     X
  1269.     X#endif /* MENU_H */
  1270. SHAR_EOF
  1271. if test 1673 -ne "`wc -c < 'Menu.h'`"
  1272. then
  1273.     echo shar: error transmitting "'Menu.h'" '(should have been 1673 characters)'
  1274. fi
  1275. fi # end of overwriting check
  1276. echo shar: extracting "'MenuItem.h'" '(1569 characters)'
  1277. if test -f 'MenuItem.h'
  1278. then
  1279.     echo shar: will not over-write existing file "'MenuItem.h'"
  1280. else
  1281. sed 's/^    X//' << \SHAR_EOF > 'MenuItem.h'
  1282.     X/***********************************************************
  1283.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  1284.     X
  1285.     X                        All Rights Reserved
  1286.     X
  1287.     XPermission to use, copy, modify, and distribute these examples for any
  1288.     Xpurpose and without fee is hereby granted, provided that the above
  1289.     Xcopyright notice appear in all copies and that both that copyright
  1290.     Xnotice and this permission notice appear in supporting documentation,
  1291.     Xand that the name of Digital not be used in advertising or publicity
  1292.     Xpertaining to distribution of the software without specific, written
  1293.     Xprior permission.
  1294.     X
  1295.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  1296.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  1297.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  1298.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  1299.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  1300.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  1301.     XOR PERFORMANCE OF THIS SOFTWARE.
  1302.     X
  1303.     X******************************************************************/
  1304.     X
  1305.     X/* Make it safe to include this file more than once. */
  1306.     X
  1307.     X#ifndef MENUITEM_H
  1308.     X#define MENUITEM_H
  1309.     X
  1310.     X/* Include the public header file for Pushbutton, our superclass */
  1311.     X
  1312.     X#include "Pushbutton.h"
  1313.     X
  1314.     X/* External reference to the class record pointer */
  1315.     X
  1316.     Xextern WidgetClass menuItemWidgetClass;
  1317.     X
  1318.     X/* Type definition for menuItem widgets */
  1319.     X
  1320.     Xtypedef struct _MenuItemRec *MenuItemWidget;
  1321.     X
  1322.     X/* End of preprocessor directives */
  1323.     X
  1324.     X#endif /* MENUITEM_H */
  1325. SHAR_EOF
  1326. if test 1569 -ne "`wc -c < 'MenuItem.h'`"
  1327. then
  1328.     echo shar: error transmitting "'MenuItem.h'" '(should have been 1569 characters)'
  1329. fi
  1330. fi # end of overwriting check
  1331. echo shar: extracting "'MenuItemP.h'" '(2216 characters)'
  1332. if test -f 'MenuItemP.h'
  1333. then
  1334.     echo shar: will not over-write existing file "'MenuItemP.h'"
  1335. else
  1336. sed 's/^    X//' << \SHAR_EOF > 'MenuItemP.h'
  1337.     X/***********************************************************
  1338.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  1339.     X
  1340.     X                        All Rights Reserved
  1341.     X
  1342.     XPermission to use, copy, modify, and distribute these examples for any
  1343.     Xpurpose and without fee is hereby granted, provided that the above
  1344.     Xcopyright notice appear in all copies and that both that copyright
  1345.     Xnotice and this permission notice appear in supporting documentation,
  1346.     Xand that the name of Digital not be used in advertising or publicity
  1347.     Xpertaining to distribution of the software without specific, written
  1348.     Xprior permission.
  1349.     X
  1350.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  1351.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  1352.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  1353.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  1354.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  1355.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  1356.     XOR PERFORMANCE OF THIS SOFTWARE.
  1357.     X
  1358.     X******************************************************************/
  1359.     X
  1360.     X/* Make it safe to include this file more than once. */
  1361.     X
  1362.     X#ifndef MENUITEMP_H
  1363.     X#define MENUITEMP_H
  1364.     X
  1365.     X/* Include the public header file for MenuItem */
  1366.     X
  1367.     X#include "MenuItem.h"
  1368.     X
  1369.     X/* Include the private header file for Pushbutton, our superclass */
  1370.     X
  1371.     X#include "PushbuttoP.h"
  1372.     X
  1373.     X/* Define the MenuItem instance part */
  1374.     X
  1375.     Xtypedef struct {
  1376.     X    int        empty;        /* no empty structures allowed */
  1377.     X} MenuItemPart;
  1378.     X
  1379.     X/* Define the full instance record */
  1380.     X
  1381.     Xtypedef struct _MenuItemRec {
  1382.     X    CorePart        core;
  1383.     X    LabelPart        label;
  1384.     X    PushbuttonPart    pushbutton;
  1385.     X    MenuItemPart    menuItem;
  1386.     X} MenuItemRec;
  1387.     X
  1388.     X/* Define class part structure */
  1389.     X
  1390.     Xtypedef struct {
  1391.     X    XtPointer        extension;
  1392.     X} MenuItemClassPart;
  1393.     X
  1394.     X/* Define the full class record */
  1395.     X
  1396.     Xtypedef struct _MenuItemClassRec {
  1397.     X    CoreClassPart    core_class;
  1398.     X    LabelClassPart    label_class;
  1399.     X    PushbuttonClassPart    pushbutton_class;
  1400.     X    MenuItemClassPart    menuItem_class;
  1401.     X} MenuItemClassRec, *MenuItemWidgetClass;
  1402.     X
  1403.     X/* External definition for class record */
  1404.     X
  1405.     Xextern MenuItemClassRec menuItemClassRec;
  1406.     X
  1407.     X/* End of preprocessor directives */
  1408.     X
  1409.     X#endif /* MENUITEMP_H */
  1410. SHAR_EOF
  1411. if test 2216 -ne "`wc -c < 'MenuItemP.h'`"
  1412. then
  1413.     echo shar: error transmitting "'MenuItemP.h'" '(should have been 2216 characters)'
  1414. fi
  1415. fi # end of overwriting check
  1416. echo shar: extracting "'MenuP.h'" '(2577 characters)'
  1417. if test -f 'MenuP.h'
  1418. then
  1419.     echo shar: will not over-write existing file "'MenuP.h'"
  1420. else
  1421. sed 's/^    X//' << \SHAR_EOF > 'MenuP.h'
  1422.     X/***********************************************************
  1423.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  1424.     X
  1425.     X                        All Rights Reserved
  1426.     X
  1427.     XPermission to use, copy, modify, and distribute these examples for any
  1428.     Xpurpose and without fee is hereby granted, provided that the above
  1429.     Xcopyright notice appear in all copies and that both that copyright
  1430.     Xnotice and this permission notice appear in supporting documentation,
  1431.     Xand that the name of Digital not be used in advertising or publicity
  1432.     Xpertaining to distribution of the software without specific, written
  1433.     Xprior permission.
  1434.     X
  1435.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  1436.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  1437.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  1438.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  1439.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  1440.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  1441.     XOR PERFORMANCE OF THIS SOFTWARE.
  1442.     X
  1443.     X******************************************************************/
  1444.     X
  1445.     X/* Make it safe to include this file more than once. */
  1446.     X
  1447.     X#ifndef MENUP_H
  1448.     X#define MENUP_H
  1449.     X
  1450.     X/* Include the public header file for Menu */
  1451.     X
  1452.     X#include "Menu.h"
  1453.     X
  1454.     X/* Menu is derived from Constraint, so no need to include the
  1455.     X   superclass private header file.  */
  1456.     X
  1457.     X/* Define the Menu instance part */
  1458.     X
  1459.     Xtypedef struct {
  1460.     X    long    save_border;    /* For geometry request foolishness */
  1461.     X} MenuPart;
  1462.     X
  1463.     X/* Define the full instance record */
  1464.     X
  1465.     Xtypedef struct _MenuRec {
  1466.     X    CorePart        core;
  1467.     X    CompositePart    composite;
  1468.     X    ConstraintPart    constraint;
  1469.     X    MenuPart        menu;
  1470.     X} MenuRec;
  1471.     X
  1472.     X/* Define class part structure */
  1473.     X
  1474.     Xtypedef struct {
  1475.     X    XtPointer        extension;
  1476.     X} MenuClassPart;
  1477.     X
  1478.     X/* Define the full class record */
  1479.     X
  1480.     Xtypedef struct _MenuClassRec {
  1481.     X    CoreClassPart    core_class;
  1482.     X    CompositeClassPart    composite_class;
  1483.     X    ConstraintClassPart    constraint_class;
  1484.     X    MenuClassPart    menu_class;
  1485.     X} MenuClassRec, *MenuClass;
  1486.     X
  1487.     X/* Define constraint part structure */
  1488.     X
  1489.     Xtypedef struct {
  1490.     X  /* New resource field */
  1491.     X    Widget        insert_before;    /* Widget to insert before */
  1492.     X
  1493.     X  /* New bookkeeping fields */
  1494.     X    Dimension        desired_height;
  1495.     X    Dimension        desired_border_width;
  1496.     X} MenuConstraintPart;
  1497.     X
  1498.     X/* Define the full constraint record */
  1499.     X
  1500.     Xtypedef struct _MenuConstraintRec {
  1501.     X    MenuConstraintPart    menu;
  1502.     X} MenuConstraintRec, *MenuConstraint;
  1503.     X
  1504.     X/* External definition for class record */
  1505.     X
  1506.     Xextern MenuClassRec menuClassRec;
  1507.     X
  1508.     X/* End of preprocessor directives */
  1509.     X
  1510.     X#endif /* MENUP_H */
  1511.     X
  1512. SHAR_EOF
  1513. if test 2577 -ne "`wc -c < 'MenuP.h'`"
  1514. then
  1515.     echo shar: error transmitting "'MenuP.h'" '(should have been 2577 characters)'
  1516. fi
  1517. fi # end of overwriting check
  1518. echo shar: extracting "'MinMax.h'" '(1893 characters)'
  1519. if test -f 'MinMax.h'
  1520. then
  1521.     echo shar: will not over-write existing file "'MinMax.h'"
  1522. else
  1523. sed 's/^    X//' << \SHAR_EOF > 'MinMax.h'
  1524.     X/***********************************************************
  1525.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  1526.     X
  1527.     X                        All Rights Reserved
  1528.     X
  1529.     XPermission to use, copy, modify, and distribute these examples for any
  1530.     Xpurpose and without fee is hereby granted, provided that the above
  1531.     Xcopyright notice appear in all copies and that both that copyright
  1532.     Xnotice and this permission notice appear in supporting documentation,
  1533.     Xand that the name of Digital not be used in advertising or publicity
  1534.     Xpertaining to distribution of the software without specific, written
  1535.     Xprior permission.
  1536.     X
  1537.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  1538.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  1539.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  1540.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  1541.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  1542.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  1543.     XOR PERFORMANCE OF THIS SOFTWARE.
  1544.     X
  1545.     X******************************************************************/
  1546.     X
  1547.     X/* Make it safe to include this file more than once. */
  1548.     X#ifndef MINMAX_H
  1549.     X#define MINMAX_H
  1550.     X
  1551.     X/* MinMax is derived from Constraint, so no need to include the
  1552.     X   superclass public header file.  */
  1553.     X
  1554.     X/* Define the new resources that MinMax uses */
  1555.     X
  1556.     X#define XtNmargin "margin"
  1557.     X#define XtNminWidth "minWidth"
  1558.     X#define XtNmaxWidth "maxWidth"
  1559.     X#define XtNminHeight "minHeight"
  1560.     X#define XtNmaxHeight "maxHeight"
  1561.     X#define XtCMinWidth "MinWidth"
  1562.     X#define XtCMaxWidth "MaxWidth"
  1563.     X#define XtCMinHeight "MinHeight"
  1564.     X#define XtCMaxHeight "MaxHeight"
  1565.     X
  1566.     X/* External reference to the class record pointer */
  1567.     Xextern WidgetClass minMaxWidgetClass;
  1568.     X
  1569.     X/* Type definition for minMax widgets */
  1570.     Xtypedef struct _MinMaxRec *MinMaxWidget;
  1571.     X
  1572.     X/* End of preprocessor directives */
  1573.     X#endif /* MINMAX_H */
  1574. SHAR_EOF
  1575. if test 1893 -ne "`wc -c < 'MinMax.h'`"
  1576. then
  1577.     echo shar: error transmitting "'MinMax.h'" '(should have been 1893 characters)'
  1578. fi
  1579. fi # end of overwriting check
  1580. echo shar: extracting "'MinMaxP.h'" '(2574 characters)'
  1581. if test -f 'MinMaxP.h'
  1582. then
  1583.     echo shar: will not over-write existing file "'MinMaxP.h'"
  1584. else
  1585. sed 's/^    X//' << \SHAR_EOF > 'MinMaxP.h'
  1586.     X/***********************************************************
  1587.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  1588.     X
  1589.     X                        All Rights Reserved
  1590.     X
  1591.     XPermission to use, copy, modify, and distribute these examples for any
  1592.     Xpurpose and without fee is hereby granted, provided that the above
  1593.     Xcopyright notice appear in all copies and that both that copyright
  1594.     Xnotice and this permission notice appear in supporting documentation,
  1595.     Xand that the name of Digital not be used in advertising or publicity
  1596.     Xpertaining to distribution of the software without specific, written
  1597.     Xprior permission.
  1598.     X
  1599.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  1600.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  1601.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  1602.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  1603.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  1604.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  1605.     XOR PERFORMANCE OF THIS SOFTWARE.
  1606.     X
  1607.     X******************************************************************/
  1608.     X
  1609.     X/* Make it safe to include this file more than once. */
  1610.     X
  1611.     X#ifndef MINMAXP_H
  1612.     X#define MINMAXP_H
  1613.     X
  1614.     X/* Include the public header file for MinMax */
  1615.     X
  1616.     X#include "MinMax.h"
  1617.     X
  1618.     X/* Define the MinMax instance part */
  1619.     X
  1620.     Xtypedef struct {
  1621.     X  /* New resource fields */
  1622.     X    Dimension    margin;        /* Extra space to leave on edges */
  1623.     X
  1624.     X  /* New internal fields */
  1625.     X    Widget    last_focus;    /* Child that last had the focus */
  1626.     X} MinMaxPart;
  1627.     X
  1628.     X/* Define the full instance record */
  1629.     X
  1630.     Xtypedef struct _MinMaxRec {
  1631.     X    CorePart        core;
  1632.     X    CompositePart    composite;
  1633.     X    ConstraintPart    constraint;
  1634.     X    MinMaxPart        minMax;
  1635.     X} MinMaxRec;
  1636.     X
  1637.     X/* Define class part structure */
  1638.     X
  1639.     Xtypedef struct {
  1640.     X    XtPointer        extension;
  1641.     X} MinMaxClassPart;
  1642.     X
  1643.     X/* Define the full class record */
  1644.     X
  1645.     Xtypedef struct _MinMaxClassRec {
  1646.     X    CoreClassPart    core_class;
  1647.     X    CompositeClassPart    composite_class;
  1648.     X    ConstraintClassPart    constraint_class;
  1649.     X    MinMaxClassPart    minMax_class;
  1650.     X} MinMaxClassRec, *MinMaxClass;
  1651.     X
  1652.     X/* Define constraint part structure */
  1653.     X
  1654.     Xtypedef struct {
  1655.     X  /* New resource fields */
  1656.     X    short        min_width;
  1657.     X    short        max_width;
  1658.     X    short        min_height;
  1659.     X    short        max_height;
  1660.     X} MinMaxConstraintPart;
  1661.     X
  1662.     X/* Define the full constraint record */
  1663.     X
  1664.     Xtypedef struct _MinMaxConstraintRec {
  1665.     X    MinMaxConstraintPart minMax;
  1666.     X} MinMaxConstraintRec, *MinMaxConstraint;
  1667.     X
  1668.     X
  1669.     X/* External definition for class record */
  1670.     X
  1671.     Xextern MinMaxClassRec minMaxClassRec;
  1672.     X
  1673.     X/* End of preprocessor directives */
  1674.     X
  1675.     X#endif /* MINMAXP_H */
  1676.     X
  1677. SHAR_EOF
  1678. if test 2574 -ne "`wc -c < 'MinMaxP.h'`"
  1679. then
  1680.     echo shar: error transmitting "'MinMaxP.h'" '(should have been 2574 characters)'
  1681. fi
  1682. fi # end of overwriting check
  1683. echo shar: extracting "'PushbuttoP.h'" '(2844 characters)'
  1684. if test -f 'PushbuttoP.h'
  1685. then
  1686.     echo shar: will not over-write existing file "'PushbuttoP.h'"
  1687. else
  1688. sed 's/^    X//' << \SHAR_EOF > 'PushbuttoP.h'
  1689.     X/***********************************************************
  1690.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  1691.     X
  1692.     X                        All Rights Reserved
  1693.     X
  1694.     XPermission to use, copy, modify, and distribute these examples for any
  1695.     Xpurpose and without fee is hereby granted, provided that the above
  1696.     Xcopyright notice appear in all copies and that both that copyright
  1697.     Xnotice and this permission notice appear in supporting documentation,
  1698.     Xand that the name of Digital not be used in advertising or publicity
  1699.     Xpertaining to distribution of the software without specific, written
  1700.     Xprior permission.
  1701.     X
  1702.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  1703.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  1704.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  1705.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  1706.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  1707.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  1708.     XOR PERFORMANCE OF THIS SOFTWARE.
  1709.     X
  1710.     X******************************************************************/
  1711.     X
  1712.     X/* Make it safe to include this file more than once. */
  1713.     X
  1714.     X#ifndef PUSHBUTTONP_H
  1715.     X#define PUSHBUTTONP_H
  1716.     X
  1717.     X/* Include the public header file for Pushbutton */
  1718.     X
  1719.     X#include "Pushbutton.h"
  1720.     X
  1721.     X/* Include the private header file for Label, our superclass */
  1722.     X
  1723.     X#include "LabelP.h"
  1724.     X
  1725.     X/* Define a new, private resource */
  1726.     X
  1727.     X#define XtNaccelString "accelString"
  1728.     X#define XtCAccelString "AccelString"
  1729.     X
  1730.     X/* Define the Pushbutton instance part */
  1731.     X
  1732.     Xtypedef struct {
  1733.     X  /* New resource fields */
  1734.     X    XtCallbackList callback;        /* Application callback */
  1735.     X    Pixel    insensitive_foreground;    /* Insensitive colors */
  1736.     X    Pixmap    insensitive_pixmap;
  1737.     X    Dimension    highlight_border;    /* Highlight border width */
  1738.     X    String    accelerator_string;    /* String for accelerator */
  1739.     X
  1740.     X  /* New internal fields */
  1741.     X    GC        insensitive_gc;      /* GC for displaying insensitive */
  1742.     X    GC        inverted_gc;      /* GC for displaying inverted */
  1743.     X    Boolean    highlighted;      /* Whether highlighted */
  1744.     X    Boolean    inverted;      /* Whether inverted */
  1745.     X    Boolean    use_insens_pixel; /* Whether using insensitive pixel */
  1746.     X} PushbuttonPart;
  1747.     X
  1748.     X/* Define the full instance record */
  1749.     X
  1750.     Xtypedef struct _PushbuttonRec {
  1751.     X    CorePart        core;
  1752.     X    LabelPart        label;
  1753.     X    PushbuttonPart    pushbutton;
  1754.     X} PushbuttonRec;
  1755.     X
  1756.     X/* Define class part structure */
  1757.     X
  1758.     Xtypedef struct {
  1759.     X    XtPointer        extension;
  1760.     X} PushbuttonClassPart;
  1761.     X
  1762.     X/* Define the full class record */
  1763.     X
  1764.     Xtypedef struct _PushbuttonClassRec {
  1765.     X    CoreClassPart    core_class;
  1766.     X    LabelClassPart    label_class;
  1767.     X    PushbuttonClassPart    pushbutton_class;
  1768.     X} PushbuttonClassRec, *PushbuttonWidgetClass;
  1769.     X
  1770.     X/* External definition for class record */
  1771.     X
  1772.     Xextern PushbuttonClassRec pushbuttonClassRec;
  1773.     X
  1774.     X/* End of preprocessor directives */
  1775.     X#endif /* PUSHBUTTONP_H */
  1776. SHAR_EOF
  1777. if test 2844 -ne "`wc -c < 'PushbuttoP.h'`"
  1778. then
  1779.     echo shar: error transmitting "'PushbuttoP.h'" '(should have been 2844 characters)'
  1780. fi
  1781. fi # end of overwriting check
  1782. echo shar: extracting "'Pushbutton.h'" '(1855 characters)'
  1783. if test -f 'Pushbutton.h'
  1784. then
  1785.     echo shar: will not over-write existing file "'Pushbutton.h'"
  1786. else
  1787. sed 's/^    X//' << \SHAR_EOF > 'Pushbutton.h'
  1788.     X/***********************************************************
  1789.     XCopyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  1790.     X
  1791.     X                        All Rights Reserved
  1792.     X
  1793.     XPermission to use, copy, modify, and distribute these examples for any
  1794.     Xpurpose and without fee is hereby granted, provided that the above
  1795.     Xcopyright notice appear in all copies and that both that copyright
  1796.     Xnotice and this permission notice appear in supporting documentation,
  1797.     Xand that the name of Digital not be used in advertising or publicity
  1798.     Xpertaining to distribution of the software without specific, written
  1799.     Xprior permission.
  1800.     X
  1801.     XDIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  1802.     XSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  1803.     XFITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  1804.     XOR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  1805.     XOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  1806.     XOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  1807.     XOR PERFORMANCE OF THIS SOFTWARE.
  1808.     X
  1809.     X******************************************************************/
  1810.     X
  1811.     X/* Make it safe to include this file more than once. */
  1812.     X
  1813.     X#ifndef PUSHBUTTON_H
  1814.     X#define PUSHBUTTON_H
  1815.     X
  1816.     X/* Include the public header file for Label, our superclass */
  1817.     X
  1818.     X#include "Label.h"
  1819.     X
  1820.     X/* New resource definitions */
  1821.     X
  1822.     X#define XtNinsensitiveForeground "insensitiveForeground"
  1823.     X#define XtNinsensitivePixmap "insensitivePixmap"
  1824.     X#define XtNhighlightBorder "highlightBorder"
  1825.     X#define XtNacceleratorString "acceleratorString"
  1826.     X#define XtCAcceleratorString "AcceleratorString"
  1827.     X
  1828.     X/* External reference to the class record pointer */
  1829.     X
  1830.     Xextern WidgetClass pushbuttonWidgetClass;
  1831.     X
  1832.     X/* Type definition for pushbutton widgets */
  1833.     X
  1834.     Xtypedef struct _PushbuttonRec *PushbuttonWidget;
  1835.     X
  1836.     X/* End of preprocessor directives */
  1837.     X
  1838.     X#endif /* PUSHBUTTON_H */
  1839. SHAR_EOF
  1840. if test 1855 -ne "`wc -c < 'Pushbutton.h'`"
  1841. then
  1842.     echo shar: error transmitting "'Pushbutton.h'" '(should have been 1855 characters)'
  1843. fi
  1844. fi # end of overwriting check
  1845. #    End of shell archive
  1846. exit 0
  1847.  
  1848. dan
  1849. ----------------------------------------------------
  1850. O'Reilly && Associates   argv@sun.com / argv@ora.com
  1851. Opinions expressed reflect those of the author only.
  1852.